package cn.iocoder.boot.job;

import cn.iocoder.boot.service.ComponentStockService;
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class LibraryJobHandler implements JobHandler {

    @Resource
    private ComponentStockService stockService;

    @Override
    public String execute(String param) throws Exception {


        stockService.intoLibrary();
    return "成功";
    }
}
